package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 业务结算清单
 * @Author: yfkj
 * @Date:   2023-02-21
 * @Version: V1.0
 */
@Data
@TableName("caishui_task_settle_list")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_task_settle_list对象", description="业务结算清单")
public class CaishuiTaskSettleList implements Serializable {
    private static final long serialVersionUID = 1L;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**税源地ID*/
    @Excel(name = "服务公司", width = 25, dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

    /**商户ID*/
    @Excel(name = "签约商户", width = 25, dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商户ID")
    private String businessId;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

	/**任务结算ID*/
	@Excel(name = "任务结算ID", width = 15)
    @ApiModelProperty(value = "任务结算ID")
    private String settleId;

	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
    @ApiModelProperty(value = "任务名称")
    private String settleName;

	/**成功金额*/
	@Excel(name = "成功金额", width = 15)
    @ApiModelProperty(value = "成功金额")
    private BigDecimal successAmount;

	/**成功笔数*/
	@Excel(name = "成功笔数", width = 15)
    @ApiModelProperty(value = "成功笔数")
    private Integer successNum;

	/**任务结算单*/
	@Excel(name = "任务结算单", width = 15)
    @ApiModelProperty(value = "任务结算单")
    private String settleDoc;

	/**结算状态*/
	@Excel(name = "结算状态", width = 15)
    @ApiModelProperty(value = "结算状态")
    private Integer settleStatus;

    /**任务结算创建时间*/
    @Excel(name = "任务结算创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "任务结算创建时间")
    private Date settleCreateTime;

	/**任务结算提交时间*/
	@Excel(name = "任务结算提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "任务结算提交时间")
    private Date settleSubmitTime;

	/**结算清单*/
	@Excel(name = "结算清单", width = 15)
    @ApiModelProperty(value = "结算清单")
    private String settleListDoc;

	/**确认函*/
	@Excel(name = "确认函", width = 15)
    @ApiModelProperty(value = "确认函")
    private String confirmationLetterDoc;

	/**审核状态：0-待上传，1-审核中，2-审核通过，3-审核拒绝*/
	@Excel(name = "审核状态", width = 15, dicCode = "caishui_settle_list_status")
	@Dict(dicCode = "caishui_settle_list_status")
    @ApiModelProperty(value = "审核状态")
    private Integer checkStatus;

	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date checkTime;

	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String checkBy;

	/**审核人*/
	@Excel(name = "驳回理由", width = 15)
    @ApiModelProperty(value = "驳回理由")
    private String rejectReason;

    /**用户上传时间*/
    @Excel(name = "用户上传时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "用户上传时间")
    private Date uploadTime;

}
